//------------------------------------------------------------------------------ // // 此代码由工具生成。 // // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失: // 代码重新生成。 // //------------------------------------------------------------------------------ namespace MESService { [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="MESService.WSTESTSoap")] public interface WSTESTSoap { // CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 json 未标记为 nillable [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/aoidataX2966aoi3Insert", ReplyAction="*")] MESService.aoidataX2966aoi3InsertResponse aoidataX2966aoi3Insert(MESService.aoidataX2966aoi3InsertRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/aoidataX2966aoi3Insert", ReplyAction="*")] System.Threading.Tasks.Task aoidataX2966aoi3InsertAsync(MESService.aoidataX2966aoi3InsertRequest request); // CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 json 未标记为 nillable [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/checkaoidataX2966aoi3Insert", ReplyAction="*")] MESService.checkaoidataX2966aoi3InsertResponse checkaoidataX2966aoi3Insert(MESService.checkaoidataX2966aoi3InsertRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/checkaoidataX2966aoi3Insert", ReplyAction="*")] System.Threading.Tasks.Task checkaoidataX2966aoi3InsertAsync(MESService.checkaoidataX2966aoi3InsertRequest request); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class aoidataX2966aoi3InsertRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="aoidataX2966aoi3Insert", Namespace="http://tempuri.org/", Order=0)] public MESService.aoidataX2966aoi3InsertRequestBody Body; public aoidataX2966aoi3InsertRequest() { } public aoidataX2966aoi3InsertRequest(MESService.aoidataX2966aoi3InsertRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class aoidataX2966aoi3InsertRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string json; public aoidataX2966aoi3InsertRequestBody() { } public aoidataX2966aoi3InsertRequestBody(string json) { this.json = json; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class aoidataX2966aoi3InsertResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="aoidataX2966aoi3InsertResponse", Namespace="http://tempuri.org/", Order=0)] public MESService.aoidataX2966aoi3InsertResponseBody Body; public aoidataX2966aoi3InsertResponse() { } public aoidataX2966aoi3InsertResponse(MESService.aoidataX2966aoi3InsertResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class aoidataX2966aoi3InsertResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string aoidataX2966aoi3InsertResult; public aoidataX2966aoi3InsertResponseBody() { } public aoidataX2966aoi3InsertResponseBody(string aoidataX2966aoi3InsertResult) { this.aoidataX2966aoi3InsertResult = aoidataX2966aoi3InsertResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class checkaoidataX2966aoi3InsertRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="checkaoidataX2966aoi3Insert", Namespace="http://tempuri.org/", Order=0)] public MESService.checkaoidataX2966aoi3InsertRequestBody Body; public checkaoidataX2966aoi3InsertRequest() { } public checkaoidataX2966aoi3InsertRequest(MESService.checkaoidataX2966aoi3InsertRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class checkaoidataX2966aoi3InsertRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string json; public checkaoidataX2966aoi3InsertRequestBody() { } public checkaoidataX2966aoi3InsertRequestBody(string json) { this.json = json; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class checkaoidataX2966aoi3InsertResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="checkaoidataX2966aoi3InsertResponse", Namespace="http://tempuri.org/", Order=0)] public MESService.checkaoidataX2966aoi3InsertResponseBody Body; public checkaoidataX2966aoi3InsertResponse() { } public checkaoidataX2966aoi3InsertResponse(MESService.checkaoidataX2966aoi3InsertResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class checkaoidataX2966aoi3InsertResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string checkaoidataX2966aoi3InsertResult; public checkaoidataX2966aoi3InsertResponseBody() { } public checkaoidataX2966aoi3InsertResponseBody(string checkaoidataX2966aoi3InsertResult) { this.checkaoidataX2966aoi3InsertResult = checkaoidataX2966aoi3InsertResult; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] public interface WSTESTSoapChannel : MESService.WSTESTSoap, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] public partial class WSTESTSoapClient : System.ServiceModel.ClientBase, MESService.WSTESTSoap { /// /// 实现此分部方法,配置服务终结点。 /// /// 要配置的终结点 /// 客户端凭据 static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); public WSTESTSoapClient(EndpointConfiguration endpointConfiguration) : base(WSTESTSoapClient.GetBindingForEndpoint(endpointConfiguration), WSTESTSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public WSTESTSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : base(WSTESTSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public WSTESTSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(WSTESTSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public WSTESTSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] MESService.aoidataX2966aoi3InsertResponse MESService.WSTESTSoap.aoidataX2966aoi3Insert(MESService.aoidataX2966aoi3InsertRequest request) { return base.Channel.aoidataX2966aoi3Insert(request); } public string aoidataX2966aoi3Insert(string json) { MESService.aoidataX2966aoi3InsertRequest inValue = new MESService.aoidataX2966aoi3InsertRequest(); inValue.Body = new MESService.aoidataX2966aoi3InsertRequestBody(); inValue.Body.json = json; MESService.aoidataX2966aoi3InsertResponse retVal = ((MESService.WSTESTSoap)(this)).aoidataX2966aoi3Insert(inValue); return retVal.Body.aoidataX2966aoi3InsertResult; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task MESService.WSTESTSoap.aoidataX2966aoi3InsertAsync(MESService.aoidataX2966aoi3InsertRequest request) { return base.Channel.aoidataX2966aoi3InsertAsync(request); } public System.Threading.Tasks.Task aoidataX2966aoi3InsertAsync(string json) { MESService.aoidataX2966aoi3InsertRequest inValue = new MESService.aoidataX2966aoi3InsertRequest(); inValue.Body = new MESService.aoidataX2966aoi3InsertRequestBody(); inValue.Body.json = json; return ((MESService.WSTESTSoap)(this)).aoidataX2966aoi3InsertAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] MESService.checkaoidataX2966aoi3InsertResponse MESService.WSTESTSoap.checkaoidataX2966aoi3Insert(MESService.checkaoidataX2966aoi3InsertRequest request) { return base.Channel.checkaoidataX2966aoi3Insert(request); } public string checkaoidataX2966aoi3Insert(string json) { MESService.checkaoidataX2966aoi3InsertRequest inValue = new MESService.checkaoidataX2966aoi3InsertRequest(); inValue.Body = new MESService.checkaoidataX2966aoi3InsertRequestBody(); inValue.Body.json = json; MESService.checkaoidataX2966aoi3InsertResponse retVal = ((MESService.WSTESTSoap)(this)).checkaoidataX2966aoi3Insert(inValue); return retVal.Body.checkaoidataX2966aoi3InsertResult; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task MESService.WSTESTSoap.checkaoidataX2966aoi3InsertAsync(MESService.checkaoidataX2966aoi3InsertRequest request) { return base.Channel.checkaoidataX2966aoi3InsertAsync(request); } public System.Threading.Tasks.Task checkaoidataX2966aoi3InsertAsync(string json) { MESService.checkaoidataX2966aoi3InsertRequest inValue = new MESService.checkaoidataX2966aoi3InsertRequest(); inValue.Body = new MESService.checkaoidataX2966aoi3InsertRequestBody(); inValue.Body.json = json; return ((MESService.WSTESTSoap)(this)).checkaoidataX2966aoi3InsertAsync(inValue); } public virtual System.Threading.Tasks.Task OpenAsync() { return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen)); } public virtual System.Threading.Tasks.Task CloseAsync() { return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndClose)); } private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap)) { System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding(); result.MaxBufferSize = int.MaxValue; result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; result.MaxReceivedMessageSize = int.MaxValue; result.AllowCookies = true; //result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport; result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.None; return result; } if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap12)) { System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding(); System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); result.Elements.Add(textBindingElement); System.ServiceModel.Channels.HttpsTransportBindingElement httpsBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement(); httpsBindingElement.AllowCookies = true; httpsBindingElement.MaxBufferSize = int.MaxValue; httpsBindingElement.MaxReceivedMessageSize = int.MaxValue; result.Elements.Add(httpsBindingElement); return result; } throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration)); } private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap)) { return new System.ServiceModel.EndpointAddress("https://localhost:44311/WSTEST.asmx"); } if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap12)) { return new System.ServiceModel.EndpointAddress("https://localhost:44311/WSTEST.asmx"); } throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration)); } public enum EndpointConfiguration { WSTESTSoap, WSTESTSoap12, } } }